/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package memoryManagement;

/**
 *
 * @author feiyun
 */
public class buddy {
    protected int size;//buddy大小
    /*
    起始于结束页的页号
    */
    protected int fPage;
    protected int lPage;
    
//用于最初的buddy初始化
    public buddy(){
        this.size=512;
        this.fPage = 1;
        this.lPage = 128;
    }
    
    //用于之后的buddy初始化
    public buddy(int size,int f,int l){
        this.size = size;
        this.lPage = l;
        this.fPage = f;
    }
    public void setSize(int size,int f,int l){
        this.size = size;
        this.lPage = l;
        this.fPage = f;
    }
}